package com.lxyk.springcloud.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

//返回通用的json
@NoArgsConstructor
@AllArgsConstructor
@Data
public class ResultInfo<T> {
    private Integer code;//编码
    private String message;//信息提示
    private T data; //泛型是什么就是什么

    public ResultInfo(Integer code, String message) {
        this(code,message,null);
    }

    //成功

    //失败
}
